/*
 * Demonstrate a block of code.
 *
 * Call this a BlockDemo.java
 */
class BlockDemo {
    public static void main(String args[]) {
        double i, j, d;

        i = 5; // see what happens when you set i = 0
        j = 10; 

        // the target of this if is a block

        if(i != 0) {
            System.out.println("i does not equal 0");
            d = j / i;
            System.out.println("j / i = " + d);
        }

        if(i == 0) System.out.println("i equals 0"); // Added by John for fun of it.
    }
}
